package loggers;

import java.util.Vector;

import javax.bluetooth.RemoteDevice;
import javax.microedition.midlet.MIDletStateChangeException;

import connections.BTConnectionListener;
import connections.BTSerialConnection;
import connections.Connection;

public class BTCompanyImageLogger extends ImageLogger implements BTConnectionListener{
	
	
	
	BTSerialConnection myConnection;
	
	public void startApp() throws MIDletStateChangeException {
		super.startApp();
		myConnection = new BTSerialConnection( this);
		myConnection.addBlueToothListener(this);
		myConnection.doDeviceDiscovery();
	}

	public void devicesAvailable(Vector _devices) {
		/*for(int i = 0; i < _devices.size(); i++){
			RemoteDevice remoteDevice = (RemoteDevice) _devices.elementAt(i);
			String who = remoteDevice.getBluetoothAddress();
			System.out.println("Who" + who);
		}*/
	}

	public void servicesAvailable(Vector _services) {
		// TODO Auto-generated method stub
		
	}

	public void connectionMade(Connection _c, String _address) {
		// TODO Auto-generated method stub
		
	}

	public void feedback(Connection _c, String _feedback) {
		// TODO Auto-generated method stub
		
	}

	public void incoming(Connection _c, byte[] _input) {
		// TODO Auto-generated method stub
		
	}

}
